gtk4.git
8 years agoMerge branch 'set-client-widget-nullable' into 'master'
Benjamin Otte [Sun, 4 Mar 2018 18:29:45 +0000 (18:29 +0000)]
Merge branch 'set-client-widget-nullable' into 'master'

gtkimcontextxim: fix gtk_im_context_xim_set_client_widget not handling widget=NULL

See merge request GNOME/gtk!46

8 years agogskpango: Don't create text nodes for clipped text
Timm Bäder [Sun, 4 Mar 2018 16:48:36 +0000 (17:48 +0100)]
gskpango: Don't create text nodes for clipped text

Measure the text here directly and check if the created node bounds will
be clipped away before even creating the text node.

8 years agorendernodes: Add gsk_text_node_new_with_bounds
Timm Bäder [Sun, 4 Mar 2018 16:35:17 +0000 (17:35 +0100)]
rendernodes: Add gsk_text_node_new_with_bounds

An alternative GskTextNode constructor that does no text measuring. That
way, we can measure the text before and check if the node will be
outside of the current clip anyway.

8 years agorendernodes: Add missing nullable annotation
Timm Bäder [Sun, 4 Mar 2018 16:25:49 +0000 (17:25 +0100)]
rendernodes: Add missing nullable annotation

8 years agogl renderer: Limit texture node size to clip
Timm Bäder [Sun, 4 Mar 2018 16:15:39 +0000 (17:15 +0100)]
gl renderer: Limit texture node size to clip

8 years agooverlay: Remove child list
Timm Bäder [Sat, 3 Mar 2018 11:28:05 +0000 (12:28 +0100)]
overlay: Remove child list

8 years agooverlay: Remove priv pointer
Timm Bäder [Sat, 3 Mar 2018 10:28:57 +0000 (11:28 +0100)]
overlay: Remove priv pointer

8 years agoglglyphcache: Pass lookup key to g_hash_table_lookup directly
Timm Bäder [Fri, 2 Mar 2018 16:22:46 +0000 (17:22 +0100)]
glglyphcache: Pass lookup key to g_hash_table_lookup directly

8 years agooverlay: Fix coordinates in child_update_style_classes
Timm Bäder [Thu, 1 Mar 2018 20:47:36 +0000 (21:47 +0100)]
overlay: Fix coordinates in child_update_style_classes

Both main child and all others are in the same coordinate space, so no
need to add the parent position here.

8 years agooverlay: Don't chain up in size_allocate
Timm Bäder [Thu, 1 Mar 2018 20:36:15 +0000 (21:36 +0100)]
overlay: Don't chain up in size_allocate

The GtkBin size_allocate implementation will allocate a size to the main
child, which GtkOverlay already does.

8 years agoentry: Remove priv pointer
Timm Bäder [Thu, 1 Mar 2018 17:42:59 +0000 (18:42 +0100)]
entry: Remove priv pointer

8 years agocontainer: Remove unused struct member
Timm Bäder [Thu, 1 Mar 2018 09:35:44 +0000 (10:35 +0100)]
container: Remove unused struct member

8 years agotestsuite: Remove GL text test case
Timm Bäder [Wed, 28 Feb 2018 15:03:35 +0000 (16:03 +0100)]
testsuite: Remove GL text test case

This was just testing that text nodes do alpha correctly, but the test
even breaks if the default font is different from the one that was used
to create the reference image, so drop it for now.

8 years agolabel: Simplify ensure_layout()
Timm Bäder [Wed, 28 Feb 2018 14:27:48 +0000 (15:27 +0100)]
label: Simplify ensure_layout()

use an early return for an already existing layout.

8 years agogtkimcontextxim: fix gtk_im_context_xim_set_client_widget not handling widget=NULL
Christoph Reiter [Sun, 4 Mar 2018 17:40:12 +0000 (18:40 +0100)]
gtkimcontextxim: fix gtk_im_context_xim_set_client_widget not handling widget=NULL

gtk_im_context_set_client_widget() allows passing NULL as widget to signal that
the widget no longer exists. The xim implementation didn't handle that
case which led to the test suite on gitlab-ci failing.

8 years agoMerge branch 'gi-a11y' into 'master'
Christoph Reiter [Sun, 4 Mar 2018 10:10:20 +0000 (10:10 +0000)]
Merge branch 'gi-a11y' into 'master'

Include gtk/gtk-a11y.h in introspection file.

See merge request GNOME/gtk!43

8 years agoMerge branch 'include-gtkstackaccessible' into 'master'
Christoph Reiter [Sun, 4 Mar 2018 09:43:34 +0000 (09:43 +0000)]
Merge branch 'include-gtkstackaccessible' into 'master'

a11y: Include gtkstackaccessible.h in gtk-a11y.h

See merge request GNOME/gtk!41

8 years agoInclude gtk/gtk-a11y.h in introspection file.
Tomasz Miąsko [Sat, 3 Mar 2018 00:00:00 +0000 (00:00 +0000)]
Include gtk/gtk-a11y.h in introspection file.

The gir XML file contains description of types and functions from
gtk/gtk-a11y.h. Indicate that this header should be included in addition
to gtk/gtk.h in applications written in C. #56

8 years agoa11y: Include gtkstackaccessible.h in gtk-a11y.h
Tomasz Miąsko [Sat, 3 Mar 2018 00:00:00 +0000 (00:00 +0000)]
a11y: Include gtkstackaccessible.h in gtk-a11y.h

8 years agoUpdate British English translation
Bruce Cowan [Fri, 2 Mar 2018 22:09:11 +0000 (22:09 +0000)]
Update British English translation

(cherry picked from commit 3059df0d4deb28875e3bd7c56c06f5c067264505)

8 years agoUpdate POTFILES.skip
Piotr Drąg [Fri, 2 Mar 2018 20:27:43 +0000 (21:27 +0100)]
Update POTFILES.skip

8 years agoUpdate POTFILES.skip
Piotr Drąg [Fri, 2 Mar 2018 20:26:21 +0000 (21:26 +0100)]
Update POTFILES.skip

8 years agogtk: Remove unused header files in gtk/ui/
Benjamin Otte [Sun, 25 Feb 2018 19:39:09 +0000 (20:39 +0100)]
gtk: Remove unused header files in gtk/ui/

8 years agoentry: Remove cursor adjustment APIs
Benjamin Otte [Mon, 26 Feb 2018 13:01:29 +0000 (14:01 +0100)]
entry: Remove cursor adjustment APIs

8 years agocss: Parse hex colors with alpha value
Benjamin Otte [Thu, 1 Mar 2018 00:08:05 +0000 (01:08 +0100)]
css: Parse hex colors with alpha value

The CSS color spec version 4 introduces this, support has hit Safari,
Chrome and Firefox, so this looks like a feature that's here to stay.

https://drafts.csswg.org/css-color/#hex-notation

8 years agoUpdate POTFILES.in
Piotr Drąg [Thu, 1 Mar 2018 17:38:05 +0000 (18:38 +0100)]
Update POTFILES.in

8 years agoMerge branch 'quartz-missing-config-include-gtk4' into 'master'
Christoph Reiter [Thu, 1 Mar 2018 13:46:26 +0000 (13:46 +0000)]
Merge branch 'quartz-missing-config-include-gtk4' into 'master'

macos: Fix missing gdk symbol exports for gtk dnd

See merge request GNOME/gtk!39

8 years agomacos: export gdk_quartz_drag_source_context()
Christoph Reiter [Thu, 1 Mar 2018 13:31:57 +0000 (14:31 +0100)]
macos: export gdk_quartz_drag_source_context()

It's used in the gtk dnd code but not exported in gdk.
Append a "_libgtk_only" suffix as with other internal exports and
export the symbol.

See #32

8 years agoci: Store the logs on build failure
Emmanuele Bassi [Thu, 1 Mar 2018 10:09:22 +0000 (17:09 +0700)]
ci: Store the logs on build failure

We should save the logs directory when the CI pipeline fails, so that we
have a chance at debugging the failure.

8 years agoci: Update the configuration options
Emmanuele Bassi [Thu, 1 Mar 2018 10:08:27 +0000 (17:08 +0700)]
ci: Update the configuration options

The options were renamed in commit 7b32900c5574.

8 years agoxim: Use NULL-safe string comparison
Emmanuele Bassi [Thu, 1 Mar 2018 09:44:02 +0000 (16:44 +0700)]
xim: Use NULL-safe string comparison

The locale string may be NULL.

8 years agoMerge branch 'wip/matthiasc/immodule-cleanup' into 'master'
Matthias Clasen [Thu, 1 Mar 2018 06:38:39 +0000 (06:38 +0000)]
Merge branch 'wip/matthiasc/immodule-cleanup' into 'master'

Convert immodules to use an extension point

See merge request GNOME/gtk!34

8 years agoentry: Simplify cursor management
Timm Bäder [Tue, 27 Feb 2018 14:13:14 +0000 (15:13 +0100)]
entry: Simplify cursor management

Since cursors are per-widget now and the icons are widgets, we can just
set the cursors once.

8 years agomacos: Fix gdk_quartz_drag_context_get_dragging_info_libgtk_only symbol export
Christoph Reiter [Tue, 27 Feb 2018 18:53:43 +0000 (19:53 +0100)]
macos: Fix gdk_quartz_drag_context_get_dragging_info_libgtk_only symbol export

The header got included without config.h being included first which resulted in the
wrong _GDK_EXTERN macro being used. As a result some symbols weren't exported
and starting a DnD action would crash in the linker.

This patch adds config.h includes in all places where clang complained about
_GDK_EXTERN redefinitions.

See #32 for more info.

8 years agobuild: Error if no backends enabled
Patrick Griffis [Tue, 27 Feb 2018 18:42:28 +0000 (13:42 -0500)]
build: Error if no backends enabled

8 years agogl: Make blur nodes with radius ∈ ]0; 1[
Timm Bäder [Tue, 27 Feb 2018 13:22:08 +0000 (14:22 +0100)]
gl: Make blur nodes with radius ∈ ]0; 1[

Otherwise, the radius here ends up being 0 and we don't draw anything at
all.

8 years agogsk: Increase blur node bounds by blur radius
Timm Bäder [Tue, 27 Feb 2018 13:12:25 +0000 (14:12 +0100)]
gsk: Increase blur node bounds by blur radius

Otherwise, the resulting node will be too small and the result looks
clipped.

8 years agotests: Add testblur
Timm Bäder [Tue, 27 Feb 2018 11:51:07 +0000 (12:51 +0100)]
tests: Add testblur

8 years agoscale: Remove priv pointer
Timm Bäder [Tue, 27 Feb 2018 11:39:04 +0000 (12:39 +0100)]
scale: Remove priv pointer

8 years agoemojichooser: Only measure reference emoji once
Timm Bäder [Tue, 27 Feb 2018 10:45:34 +0000 (11:45 +0100)]
emojichooser: Only measure reference emoji once

Doing that once for every emoji is pretty slow and unnecessary as the
width does not change.

8 years agoentry: Add motion controller
Timm Bäder [Tue, 27 Feb 2018 10:05:04 +0000 (11:05 +0100)]
entry: Add motion controller

Do the mouse cursor un-obscuring in the ::motion handler instead of in
the ->event handler. We don't get rid of the GtkWidgetClass::event
handler altogether that way, but it's a step in the right direction.

8 years agospinbutton: Fold function into only caller
Timm Bäder [Mon, 26 Feb 2018 19:23:45 +0000 (20:23 +0100)]
spinbutton: Fold function into only caller

8 years agospinbutton: Remove unused macro
Timm Bäder [Mon, 26 Feb 2018 18:59:59 +0000 (19:59 +0100)]
spinbutton: Remove unused macro

8 years agocheckbutton: Don't reorder non-existent indicator widget
Timm Bäder [Mon, 26 Feb 2018 17:06:04 +0000 (18:06 +0100)]
checkbutton: Don't reorder non-existent indicator widget

8 years agoentry: Check gdk_event_get_coords return value
Timm Bäder [Mon, 26 Feb 2018 11:14:10 +0000 (12:14 +0100)]
entry: Check gdk_event_get_coords return value

We use the x/y values later on to decide what to do with the event.

8 years agoentry: Allocate icons at full height
Timm Bäder [Mon, 26 Feb 2018 11:29:11 +0000 (12:29 +0100)]
entry: Allocate icons at full height

Makes for a larger hit area for pointing devices. If vertical centering
is still desired, GtkWidget:halign can be set on the icon widgets.

8 years agowidget: Simplify set_style_context
Timm Bäder [Mon, 26 Feb 2018 07:42:38 +0000 (08:42 +0100)]
widget: Simplify set_style_context

No need to use widget->priv later if we already define a priv pointer
before.

8 years agobutton: Remove priv pointer
Timm Bäder [Sun, 25 Feb 2018 10:29:33 +0000 (11:29 +0100)]
button: Remove priv pointer

This way we can also move the GtkButtonPrivate definition into
gtkbutton.c

8 years agofilechooserwidget: Make the location entry hexpand
Timm Bäder [Sat, 24 Feb 2018 09:49:44 +0000 (10:49 +0100)]
filechooserwidget: Make the location entry hexpand

8 years agotextview: Use content size when validating contents
Timm Bäder [Sat, 24 Feb 2018 09:49:30 +0000 (10:49 +0100)]
textview: Use content size when validating contents

8 years agocontentsformat: Avoid a GPtrArray
Timm Bäder [Sat, 24 Feb 2018 07:40:41 +0000 (08:40 +0100)]
contentsformat: Avoid a GPtrArray

We know how many items this array will have in advance, so just malloc
enough.

8 years agowidget: Remove some unneeded prototypes
Timm Bäder [Sat, 24 Feb 2018 06:56:48 +0000 (07:56 +0100)]
widget: Remove some unneeded prototypes

8 years agofix the build
Matthias Clasen [Sun, 25 Feb 2018 02:44:03 +0000 (21:44 -0500)]
fix the build

8 years agoUpdate docs for changed options
Matthias Clasen [Sat, 24 Feb 2018 06:01:30 +0000 (01:01 -0500)]
Update docs for changed options

8 years agoUpdate docs for immodules
Matthias Clasen [Sat, 24 Feb 2018 05:51:00 +0000 (00:51 -0500)]
Update docs for immodules

8 years agoAlways include platform immodules
Matthias Clasen [Fri, 23 Feb 2018 19:59:49 +0000 (14:59 -0500)]
Always include platform immodules

No need to load these as gio modules, we just include
them in libgtk.

8 years agoConvert immodules to use an extension point
Matthias Clasen [Mon, 19 Feb 2018 23:29:00 +0000 (18:29 -0500)]
Convert immodules to use an extension point

Add an extension point called gtk-im-module, which requires
the type GtkIMContext. Simplify the loading by using GIO
infrastructure. Drop the locale filtering for now, I don't
think it is really necessary nowadays.

Convert existing platform modules to gio modules.
Sill to do: Drop the conditional build machinery.
Either always include them, or never.

8 years agoDon't mention papi in options docs
Matthias Clasen [Sat, 24 Feb 2018 06:02:17 +0000 (01:02 -0500)]
Don't mention papi in options docs

The papi print backend has been removed.

8 years agoAdd some debug output to print backend loading
Matthias Clasen [Sat, 24 Feb 2018 05:44:21 +0000 (00:44 -0500)]
Add some debug output to print backend loading

8 years agoREADME.md: Minor updates
Matthias Clasen [Sat, 24 Feb 2018 23:06:51 +0000 (18:06 -0500)]
README.md: Minor updates

8 years agowidget: Don't export propagate_hierarchy_changed
Timm Bäder [Fri, 23 Feb 2018 21:14:38 +0000 (22:14 +0100)]
widget: Don't export propagate_hierarchy_changed

8 years agowidget: Simplify _set_name
Timm Bäder [Fri, 23 Feb 2018 21:08:45 +0000 (22:08 +0100)]
widget: Simplify _set_name

No need for a new_name local variable here.

8 years agobutton: Remove ::event handler
Timm Bäder [Fri, 23 Feb 2018 15:18:11 +0000 (16:18 +0100)]
button: Remove ::event handler

GRAB_BROKEN events cause the ::cancel handler of the gesture to be
emitted, which is where we also call gtk_button_do_release, so this
GtkWidget::event handler is unnecessary.

8 years agowidget: Correct translate_coordinate documentation
Timm Bäder [Fri, 23 Feb 2018 10:34:18 +0000 (11:34 +0100)]
widget: Correct translate_coordinate documentation

We write 0 to dest_x and dest_y nowadays if the two widgets do not have
a common ancestor.

8 years agoUpdate Scottish Gaelic translation
GNOME Translation Robot [Fri, 23 Feb 2018 17:34:56 +0000 (17:34 +0000)]
Update Scottish Gaelic translation

(cherry picked from commit f3f75f62e8e419b2e8cc6fcd243f12ee7b281e7d)

8 years agoUpdate Scottish Gaelic translation
GNOME Translation Robot [Fri, 23 Feb 2018 17:25:08 +0000 (17:25 +0000)]
Update Scottish Gaelic translation

(cherry picked from commit 68eb897900b6ca8b5173c9d21ea122db7694069c)

8 years agoMerge branch 'text-view-measure' into 'master'
Timm Bäder [Fri, 23 Feb 2018 16:03:53 +0000 (16:03 +0000)]
Merge branch 'text-view-measure' into 'master'

text-view: make measure() use the layout height

See merge request GNOME/gtk!37

8 years agovulkan: Don't quiet the compiler
Benjamin Otte [Fri, 23 Feb 2018 12:49:17 +0000 (13:49 +0100)]
vulkan: Don't quiet the compiler

This reverts 76461a8004caf4490f84140b0551d1f5296241f6.

We don't want to quiet the compiler here because new warnings should be
added to the enum the moment they become available.

8 years agovulkan: Add error strings for missing VkResults
Benjamin Otte [Fri, 23 Feb 2018 12:48:20 +0000 (13:48 +0100)]
vulkan: Add error strings for missing VkResults

Also, guard newer error returns with proper #if, so they don't trip up
older Vulkan versions.

8 years agoplacessidebar: Don't create a GtkWindow for drag icons
Timm Bäder [Fri, 23 Feb 2018 10:08:53 +0000 (11:08 +0100)]
placessidebar: Don't create a GtkWindow for drag icons

Just use the drag_widget we create before, since GtkWindow drag icons
are not allowed anymore.

8 years agorange: Fix typo in allocate_trough
Timm Bäder [Fri, 23 Feb 2018 09:59:21 +0000 (10:59 +0100)]
range: Fix typo in allocate_trough

lower - upper results in something negative of course.

8 years agowidget: Improve warning for negative size_allocate dimensions
Timm Bäder [Fri, 23 Feb 2018 09:27:35 +0000 (10:27 +0100)]
widget: Improve warning for negative size_allocate dimensions

Print widget class, css node name and address.

8 years agorange: Fix coord/value translation
Timm Bäder [Fri, 23 Feb 2018 09:42:09 +0000 (10:42 +0100)]
range: Fix coord/value translation

Save the x/y we allocated the slider at, which is different than
the coordinates we get from any of the widget allocation accessors.

8 years agorange: Compute slider allocation in update_initial_slider_position
Timm Bäder [Fri, 23 Feb 2018 07:40:27 +0000 (08:40 +0100)]
range: Compute slider allocation in update_initial_slider_position

Instead of outside at every call-site.

8 years agorange: Remove GtkScale special casing
Timm Bäder [Fri, 23 Feb 2018 06:59:10 +0000 (07:59 +0100)]
range: Remove GtkScale special casing

This is unnecessary these days due to the negative margins of the
slider.

8 years agorange: Simplify allocate_trough
Timm Bäder [Thu, 22 Feb 2018 17:24:06 +0000 (18:24 +0100)]
range: Simplify allocate_trough

8 years agorange: Simplify compute_slider_position
Timm Bäder [Thu, 22 Feb 2018 16:56:49 +0000 (17:56 +0100)]
range: Simplify compute_slider_position

8 years agorange: Fix coordinates in coord_to_value
Timm Bäder [Thu, 22 Feb 2018 16:13:05 +0000 (17:13 +0100)]
range: Fix coordinates in coord_to_value

The given coordinate needs to be trough-relative, since that's what the
slider is relative to. Also use the trough's content size and not the
outer size.

8 years agorange: Remove some unneeded includes
Timm Bäder [Tue, 20 Feb 2018 10:20:12 +0000 (11:20 +0100)]
range: Remove some unneeded includes

8 years agorange: Remove priv pointer
Timm Bäder [Tue, 20 Feb 2018 09:43:15 +0000 (10:43 +0100)]
range: Remove priv pointer

8 years agorange: Stop tracking mouse position
Timm Bäder [Tue, 20 Feb 2018 09:31:20 +0000 (10:31 +0100)]
range: Stop tracking mouse position

We have the mouse position available everywhere we want to use it
anyway, so use that instead.

8 years agorange: Stop tracking mouse location
Timm Bäder [Tue, 20 Feb 2018 09:16:00 +0000 (10:16 +0100)]
range: Stop tracking mouse location

Instead, just use gtk_widget_pick() to get the widget at the pointer
position whenever we need it.

8 years agorange: Don't call calc_slider() on value changes
Timm Bäder [Sat, 17 Feb 2018 14:25:06 +0000 (15:25 +0100)]
range: Don't call calc_slider() on value changes

calc_slider() updates the slider visibility, but that can only change if
the upper or lower change.

8 years agorange: Remove unnecessary queue_draw calls
Timm Bäder [Sat, 17 Feb 2018 08:48:57 +0000 (09:48 +0100)]
range: Remove unnecessary queue_draw calls

8 years agorange: Remove scale special case
Timm Bäder [Sat, 17 Feb 2018 08:29:45 +0000 (09:29 +0100)]
range: Remove scale special case

This is done automatically nowadays since the value is shown in a
widget.

8 years agotext-view: make measure() use the layout height
Peter Bloomfield [Wed, 21 Feb 2018 13:22:42 +0000 (08:22 -0500)]
text-view: make measure() use the layout height

GtkTextView::measure should include the height of the text-layout in its
minimum and natural heights. This fixes scrolling when a text-view has a
scrolled-window ancestor that is not its immediate parent.

8 years agoMerge branch 'gitlab-ci-run-gtk-tests' into 'master'
Emmanuele Bassi [Wed, 21 Feb 2018 12:07:37 +0000 (12:07 +0000)]
Merge branch 'gitlab-ci-run-gtk-tests' into 'master'

gitlab-ci: run parts of the test suite

See merge request GNOME/gtk!22

8 years agobuild: Do not eagerly disable checks on release builds
Emmanuele Bassi [Tue, 20 Feb 2018 13:19:31 +0000 (13:19 +0000)]
build: Do not eagerly disable checks on release builds

Release builds should only disable cast checks, to match what we used
to do back with the Autotools builds.

The Autotools build had an "--enable-debug=no" option, but that was
rarely used; Meson has debug, debugoptimized, release, and plain build
types, but we considered the "release" build types as the old "disable
all debugging code", which is not really accurate.

Disabling assertions and preconditon checks should be left to people
with constrained environments and/or packagers; they are supposed to
use the "plain" build type, and override the CFLAGS themselves.

8 years agobuild: Use get_supported_arguments()
Emmanuele Bassi [Tue, 20 Feb 2018 13:18:28 +0000 (13:18 +0000)]
build: Use get_supported_arguments()

Instead of checking each flag one by one, use the appropriate method of
the Meson compiler object.

8 years agoDrop no-longer existing im modules
Matthias Clasen [Mon, 19 Feb 2018 23:32:50 +0000 (18:32 -0500)]
Drop no-longer existing im modules

This was just dead code. The actual modules have already
been removed.

8 years agogitlab-ci: run parts of the test suite
Christoph Reiter [Sat, 17 Feb 2018 10:55:40 +0000 (11:55 +0100)]
gitlab-ci: run parts of the test suite

This runs the tests in testsuite/{css,gtk,tools}
All others suites have failing tests and need more work.

8 years agoMerge branch 'gtk-debug-flags-with-open-display-master' into 'master'
Matthias Clasen [Mon, 19 Feb 2018 18:35:21 +0000 (18:35 +0000)]
Merge branch 'gtk-debug-flags-with-open-display-master' into 'master'

gtk_init: Fix debug flags handling when a display is already open

See merge request GNOME/gtk!27

8 years agoMerge branch 'tests-set-schema-dir' into 'master'
Matthias Clasen [Mon, 19 Feb 2018 18:28:00 +0000 (18:28 +0000)]
Merge branch 'tests-set-schema-dir' into 'master'

tests: Make GSETTINGS_SCHEMA_DIR point to the compiled schemas in the build dir

See merge request GNOME/gtk!21

8 years agogtk_init: Fix debug flags handling when a display is already open
Christoph Reiter [Sun, 18 Feb 2018 09:34:52 +0000 (10:34 +0100)]
gtk_init: Fix debug flags handling when a display is already open

The code assigning the display to the debug_flags struct gets only
called when the default display changes, which never happens
when there already is one.

This makes it call the change callback in case a display is already
there.

The same fix was applied to gtk3 in !26 where calling gdk_init()
before gtk_init() would trigger this case. With gdk_init() gone
in master this is less likely to happen, but still possible
if gdk_display_open() is called before gtk_init().

See https://gitlab.gnome.org/GNOME/pygobject/issues/166

8 years agoRemove some unused code
Matthias Clasen [Mon, 19 Feb 2018 02:54:43 +0000 (21:54 -0500)]
Remove some unused code

No more callers of _gtk_find_module.

8 years agoRemove unused variable in the CUPS print backend
Emmanuele Bassi [Mon, 19 Feb 2018 02:10:52 +0000 (02:10 +0000)]
Remove unused variable in the CUPS print backend

The variable is a leftover from when we were not using the
G_DEFINE_DYNAMIC_TYPE macro.

8 years agoFix the build in the Cloudprint print backend
Emmanuele Bassi [Mon, 19 Feb 2018 02:08:02 +0000 (02:08 +0000)]
Fix the build in the Cloudprint print backend

Typos and re-declared functions.

8 years agoFix build of the lpr print backend
Emmanuele Bassi [Mon, 19 Feb 2018 02:07:09 +0000 (02:07 +0000)]
Fix build of the lpr print backend

Some copy-and-paste from the CUPS print backend broke the build on
Continuous, where CUPS does not exist.

8 years agobuild: Fix checks on enabled print backends
Emmanuele Bassi [Mon, 19 Feb 2018 02:06:11 +0000 (02:06 +0000)]
build: Fix checks on enabled print backends

The enabled print backends are a boolean, not a 'yes/no' string.

8 years agoFix the build
Matthias Clasen [Sun, 18 Feb 2018 23:14:18 +0000 (18:14 -0500)]
Fix the build